<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
 <bean:define id="sessionData" name="sessionData" type="com.scienzeinternazinali.util.SessionData" scope="request" toScope="page"></bean:define>
  <logic:empty name="sessionData" property="utente">
  <jsp:forward page="/index.jsp"></jsp:forward>
</logic:empty>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head>
    <title><bean:message key="title.home"/></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="verify-v1" content="mH3mi/LQy7c1WMWXy/1Z712qOsQYWv5yq0IbgvdFqhM=" />
    <meta name="description" content="Universita di Torino, Laurea magistrale in Scienze Internazionali" />
    <meta name="keywords" content="Scienze politiche, Scienze internazionali, laurea magistrale, Universit&agrave; di Torino, Universita, universita" />
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="shortcut icon" href="favicon.ico" /> 
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
    <link rel="up" href="#top" title="torna all'inizio" />
	<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/style.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/table.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/form.css" />
	<script type="text/javascript" src="<%=basePath %>/js/global.js"></script>
  </head>
<body onload="document.getElementById('titolo').focus();">
<div id="top">
	<ul id="menuLang">
		<!-- li><a href="<%=basePath %>/switch.do?pageName=<bean:write name="sessionData" property="page" />&lang=en"  title="<bean:message key="menu.lang.inglese.title"/>"><img src="<%=basePath %>/images/flag_en.gif"  alt="<bean:message key="menu.lang.inglese.title"/>"/></a></li-->
		<li><a href="<%=basePath %>/switch.do?pageName=<bean:write name="sessionData" property="page" />&lang=it" title="<bean:message key="menu.lang.italiano.title"/>"><img src="<%=basePath %>/images/flag_it.gif" alt="<bean:message key="menu.lang.italiano.title"/>" /></a></li>
	</ul>	
    <jsp:include page="/jsp/include/servizio.jsp"></jsp:include>
	<div class="clear"></div>
</div><!-- / top -->
<div id="wrapper">
  <div id="wrapperTop">
     <div id="wrapperBottom">
    	<div id="container">
          <jsp:include page="/jsp/include/header.jsp"></jsp:include>
          <div id="menuMarketing">
            <jsp:include page="/jsp/include/marketing.jsp"></jsp:include>
          </div><!-- / menuMarketing -->
          <div id="content">
          	<div id="colLeft">
          	    <jsp:include page="/jsp/include/istituzionale.jsp"></jsp:include>
            </div><!-- / colLeft -->
            <div id="colRight">
            <jsp:include flush="true" page="/jsp/include/adminmenu.jsp"></jsp:include>
            <br />
			  <logic:notEmpty name="sessionData" property="errore">
			     <strong><bean:write name="sessionData" property="errore.errorMessage" />  </strong>
			  </logic:notEmpty>
			<form id="myform" action="/scienzeinternazionali/inserisciPost.do" method="post">
			<fieldset>
				<legend>inserisci post</legend>
				<div>
					<label for="titolo">
						titolo
					</label>
					<input type="text" name="titolo" id="all" /> 
				</div>
				<div>
					<label for="post">
						post&nbsp; 
					</label>
					<textarea name="post" id="styled"></textarea>
				</div>
				<div>
					<label for="link">
						link
					</label>
					<input type="text" name="link" id="all" /> 
				</div>
				<div>
					<label for="sticky">
						sticky
					</label>
					mantieni al top della lista <i>&quot;in evidenza&quot;</i>&nbsp;<input type="checkbox" name="sticky" id="check" /> 
				</div>
				<br/>
				<input type="submit" value="salva in bozza" name="save" class="formbutton" onmouseover="Swap(this,'formbuttonover')" onmouseout="Swap(this,'formbutton')" />&nbsp;
				<input type="submit" value="pubblica" name="save" class="formbutton" onmouseover="Swap(this,'formbuttonover')" onmouseout="Swap(this,'formbutton')" />&nbsp;
				
               </fieldset>
			</form>

            </div><!-- / colRight -->
            <div class="clear"></div>
            <div id="footer"><bean:message key="footer.home"/></div>
    </div><!-- / content -->
	</div><!-- / container -->
    </div><!-- / wrapperBottom --> 
   </div><!-- / wrapperTop --> 
</div><!-- / wrapper -->
<p><bean:message key="footer"/></p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10709673-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>


